//
//  ViewController.m
//  1059计算面积
//
//  Created by 小白 on 16/2/22.
//  Copyright © 2016年 小白. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController
- (IBAction)viewchage:(id)sender {
    [self.view endEditing:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)btncommunicator:(id)sender {
    double value = [self.textLenght.text doubleValue] * [self.textWidth.text doubleValue];
    self.textArea.text = [NSString stringWithFormat:@"%.2f",value];
    double radius = [self.textRadius.text doubleValue];
    self.textCircle.text = [NSString stringWithFormat:@"%.2f",radius*3.14];
}
@end
